package tech.xs.sys.domain.bo.permission;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import tech.xs.common.framework.domain.entity.BaseEntity;
import tech.xs.sys.domain.entity.SysPermission;

import java.io.Serializable;
import java.util.List;

@Getter
@Setter
@ToString
public class ExportPermissionQueryBo implements Serializable {

    private List<Long> ids;

    public LambdaQueryWrapper<SysPermission> query() {
        return Wrappers.<SysPermission>lambdaQuery()
                .in(BaseEntity::getId, ids);
    }

}
